package com.ask.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;


/**
 * 提问参数
 * Created by lwl
 */
@Getter
@Setter
public class AnswerParam {
    @ApiModelProperty(value = "问题id", required = true)
    private String questionId;//mongo自生的id

    @ApiModelProperty(value = "回答者id", required = true)
    private String answerId;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty(value = "是否匿名", required = false)
    @NotEmpty(message = "是否匿名")
    private Boolean anonymous;

    @ApiModelProperty(value = "图片url", required = false)
    private String imgUrl;
}

